<template>
	<view>
		<indexCommon v-if="mainPage==1"></indexCommon>
		<indexOld v-if="mainPage==2"></indexOld>
	</view>
</template>

<script>
	import indexCommon from '@/component/index/index.vue'
	import indexOld from '@/component/index_old/index_old.vue'
	export default {
		components: {
			indexCommon,
			indexOld
		},
		data() {
			return {
				mainPage: 1
			}
		},
		onShow() {
			var currentMainPage = uni.getStorageSync('mainPage');
			if(currentMainPage!=''){
				this.mainPage = currentMainPage
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>
